Make name lookups more JIT friendly.

This change was half-done before, so this is really a case of finishing the job
off. On the composed Richards benchmark, this leads to a ~15% speedup.