tree.h (copy_ref_info): Expose existing function.