[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)
Merge pull request #141 from HorizonConnect/patch-2

[Java] Schema version was not propagated to groups