A bit more work on compileKernel and mapData, still WIP.
Comments.