nir/serialize: store 32-bit object IDs instead of 64-bit