Issue 13594: nextPermutation should work with static arrays too.

Fixes: https://issues.dlang.org/show_bug.cgi?id=13594
Yeah, this is code inside a unittest, so this shouldn't be an issue.

The only reason I changed it was because `equal` apparently doesn't know how to compare a dynamic array with a static one. :-(