code: func (reg *typeRegistry) BaseType(t *Type) BaseType {
  	var bt BaseType
  	if t == nil {
  		return bt //the zero value
  	}
  	tName, tType, _ := TypeInfo(t)
  	for TypeRef(tName) != tType {
  		tt := reg.FindType(tType)
  		if tt == nil {
  			return bt //the zero value
  		}
  		tName, tType, _ = TypeInfo(tt)
  	}
  	n, _ := reg.baseTypes[string(tName)]
  	return n
  }
docs: //
  // BaseTypeName returns the name of the RDL base type of the type specified by the given name
  //