Fixed undefined symbol for _nextTypeId for ClassTypeId