Better type check in BufferBuilder
Better type check in BufferBuilder

Otherwise incorrect types in the shapes array cause havoc.


Former-commit-id: 59130ce253c76e002777cc74f146fd501ca6f1f9
Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide