Change TYPES to now be an enum

TYPES used to be an interface in the swig module. It has now been moved
to a new module, swig.lexer, and set as an enum type.