Add functions for creating and referencing type variables.