Add calls to save restorable state
Fix how serialization/deserialization of double-width chars works. Fix a bug where newAppendOnlyCopy didn't set mayHaveDoubleWidthCharacter correctly.