Reimplemeneted object serialization in Settings.