Encode/Decode groupSizeEncoding fields in forwards order

Encode/decode groupSizeEncoding in fowards order (all languages)