Fix sort_map::set to overwrite value when existing key is found