struct ref_update: add a type field