Fix bug in JIT frontend, also naming cleanups from the process of tracking it down