Adding support for expanding arrays as root element