Changed partition for objects

Partition now returns an array of two objects (as opposed to an array of two arrays)
for any object except for String, Array and Arguments objects. String, Array and
arguments objects still return an array of two arrays.