Refactor usage in invoke-primitive JIT compilation
Refactor remaining local scoping in JIT compiler