Progress on Halide gridding.

There is a working implementation (reduced-example-works-wrong-nesting.cpp).

The code is far from optimal, though.