Support incomplete types in ref_ptr