Fixed a couple of bugs in objects and arrays.