sophia: ensure correct versional iteration with deleted keys