force all nested elements into arrays
add XML related todos