Bug fixes for JrubyGenerator