.permutations should also return arrays

Someone fixed .combinations earlier but missed .permutations