Add a convenience isReference() API to Type.