Deprecated weak_ref and weak_ref_is_same_object