if maxOccurs > 1, use array (closes #97)