Issue 13594: nextPermutation should work with static arrays too.

Fixes: https://issues.dlang.org/show_bug.cgi?id=13594
It's a nested function inside this unit test. I don't think there's any danger of this issue arising, as the only two arguments to this function are a dynamic array and a static array.