fix bug in Array#permutations: caused during bootstrapping