Changed List::erase() and Map::erase() to take a ConstIterator