Fix jruby generation to handle Set correctly