Array support

Array support added using maxOccurs xml attribute.