bugfix for multidimensional permute

fixes: AccelerateHS/accelerate#93