When there are several optional elements of the same type defined in a sequence (and in a choice) at the moment they are converted to json or dict they have the same data, and when converted to xml they are all of the same type.
Reproduction in this repo