Merge "lib/vdl/codegen/java: don't emit a cast unless there are fields to be compared"