code: function createTypedef(context, typeName, value) {
    if (value instanceof Reference) {
      value = value.resolve(context);
    }
    context.results[typeName] = value;
    return value;
  }
docs: let the reference resoltion system do it's thing the "constructor" for a typedef just returns the resolved value