Bug fixes for jruby generator