Fixed Halide. Typical C++ bug, forgot one of the dimensions in array initializer, compiler didn't even warn me.