Added support for top level lists and arrays