Fixed some problems with slot ordering due to my misunderstanding of how std::map::insert() handles the case of an already existing key.