Convert stl map conversion to take const ref.