Fixed nested Sequence/SequenceOf generation