Simplified interface of (build/read/write)_map_objects() by making them decide by themselves how to type-specifically handle each map object.