Issue 13594: nextPermutation should work with static arrays too.

Fixes: https://issues.dlang.org/show_bug.cgi?id=13594
Suggest templating the test function and doing all the same tests as the original unit tests. They are already all there, no reason not to reuse them :)