Allow all integer types in permutation vector
Merge pull request #4512 from JuliaLang/anj/permute

Allow all integer types in permutation vector