Added a templated function that can be used to save any type of map to file.