Update oo#compare usages

compare now allows comparisons to null/undefined.

Also as compare treats arrays as objects, when seeing if an array
is full of undefined's we don't need to construct a sparse array.

Change-Id: I34c5b2699982044e13943bb9b9f47c7a0f522e3b
Merge "Update oo#compare usages"