Support parsing of arrays and objects

and add spec examples for them