Fixes problem with array_to_xml ignoring the key of array nodes