Daffodil performs checks to ensure the occursCountKind="parsed" for arrays and optional elements inside an unordered sequence. However, when we convert a unordered sequence to a sequence of choices, we create temporary elements that do not specify occursCountKind. These elements then get occursCountKind from the dfdl:format. If this value is not parsed, daffodil throws an error. We either need to set occursCountKind="parsed" on these temporary elements, or we need to exclude these elements when checking this restriction.