nir/validate: validate metadata
This works by copying the metadata, re-running nir_metadata_require
, comparing that to the copy and then restoring metadata from the copy.
This also enables SSA dominance validation by default, since it can no longer change dominance metadata
Edited by Rhys Perry