Fix broken isEnumClassObject methods

Out of three methods, two were incorrect