Fix parser and code to support ruby -> java enum conversion