Made all config implementations serializable.