Support for type constants: added equals_type_type, subtype and typeOf
primitives.