Code-gen'd code no longer requires codegen'd code, each query compiles to single file.
Testing showed this is a GINORMOUS win, since ghc seems to be much faster on a single big file than many small ones.
Also small fix to query compiler.