Fixes for IR JIT to get method def and root script working right.