tweaks to generation
generating Java enums
fixed java bindings