handle case when value is an array

XML serialization was incorrect otherwise