nir: Add a nir_op_is_vec helper