JIT getcodeobj

Was actually timotimo++'s patch, I included a fix for
curcode which derefed *tc->cur_frame->code_ref, which
isn't necessary.