nextEvenPermutation should also accept static arrays.