Fix iro_cache calculation in RefMap.