for_each_alternate_ref: pass name/oid instead of ref struct