nir: add nir_variable::index and nir_index_vars