Merge into master from pull request #56:
Java_gen: a few smaller fixes (https://github.com/floodlight/loxigen/pull/56)