Updated ScopedMap to use the layout of ErasableScopedMap; putting the iterator details at the end of the file.