java_gen/java_type: fix format_primitive_literal

format_primitive_literal was not returning the right value/format
for boolean.
java_gen: generate getStableValue() for 'stable' enums

'stable' enums are enums whose wire values are guaranteed to not change
between versions. For this enums, we can generate the wire value
into the 'symbolic' enums as "stableValue" to make them more easily
accessible.

This commit does a bit of housekeeping to pass the 'stable' information
into the JavaEnum. Then, for stable enums, we add a 'stableValue'
EnumPropertyMetadata field that generates the values into the enum.
Merge into master from pull request #336:
java_gen: generate getStableValue() for 'stable' enums (https://github.com/floodlight/loxigen/pull/336)