Fixed improper implementation of IndexSet::prime(IndexT). Old implementation did not respect arrow direction.