Tensor now uses the generalized PermIndex functor.