[Java] Schema version was not propagated to groups

version was always set to 0 when encoding. Preventing to retrieve field values while encoding (to set values within Object field for instance)