Made handling of classGroup clashes way tidier, and faster if autogen is run twice