Fix type of of_flow_stats_entry.flags, smaller fixes to Java

Reviewer: @Sovietaced @rlane

@rlane - have a look at 078fcfd (should not impact other languages than java tho).
yay