[grid] use version aware reference_element indirection everywhere