Start converting JIT builder to using blocks

This will hopefully significantly reduce local-variable-misuse bugs.