Fix getlocal argument format for jruby support