Generalize DO-CTYPES to DO-SUBCLASSES, update callsites.