fixed bug in object() that was causing key/value pair arrays to build an object incorrectly