libcommon|GameSessionWriter: ACScriptState does not include the segment identifier

Plus cleanup.