nir/serialize: support any num_components for remaining instructions