code: function toTypeRefName(Type) {
      var ref = toTypeRef(Type);
      return ref instanceof Function ? ref.name : ref;
    }
docs: Resolves/normalizes a type name from either a string or a constructor.
  @function module:object.toTypeRef
  @param type {Function|String} - String or function representing a type.
  @returns {String}
  @todo write tests for this function.