Fix xml2array and issues that arise because of it.