[IR JIT] Implement NthRef.
Cleanup JIT method names and remove some dead code.