Savegame Tool: Write a map state header, for format detection
libcommon: Detect the serialized map state format from the header