Fixing method lookup for PigServer.registerScript