By erasing the global_refs field we'd trip any codepath using const_values_equal_ptr to figure if two slices were different.