code: func (reg *typeRegistry) IsStringTypeName(tn TypeRef) bool {
  	t := reg.FindType(tn)
  	if t == nil {
  		return false
  	}
  	return reg.IsStringType(t)
  }
docs: // IsStringTypeName returns true if the type with the given name has a String base type