See test_hiddenGroupChoice2 in edu.illinois.ncsa.daffodil.section14.sequence_groups.TestSequenceGroups
If roundTrip is enabled for that test, the output of unparse is "145,2", but the length of the data is 16 bits. This causes the subsequent roundtripping parse to fail. The length of the data should be 40 bits.