BUG: make array compares robust to dict ordering

We were getting failures because the tests relied on particular ordering
of the dict keys.