changed behavior for array to xml conversion