Added comparison operator for types.