Removed "var" field from type_ref (unnecessary)

WIP