Add support for type references, e.g. "the blue one".