$ref->kindname()
Returns a simple name for the kind of the reference. This is equivalent to $ref->$kind->name().