Switch ref_ct_test to core::is_same.