Add compareNestedArray:with: for test

Swift can't compare [[1], [2]] == [[1], [2]] so along with some other compiler bug workarounds
this should allow us to test partition{,All,By}