Adding test for assigning an empty array to an object.
Fix parsing empty arrays.