Handle nondeterministic output in Cuthill-McKee ordering tests

This fixes another IronPython test failure.