arrays of primitives can not contain null but arrays of object can.
I think you need to add an extra GroupType with an optional field to deal with this.
It would be worth adding a test to verify that arrays that contain some nulls ar persisted correctly.