fixed a bug in TopologicalRepresentative.nielsen_classes()