add_one_ref(): rewrite to take an object_id argument