nir/validate: validate num_components on registers and intrinsics