libcommon|MapStateWriter: Write the new map state file header