append_similar_ref(): rewrite to take an object_id argument