Bug fixes in JrubyGenerator