Preliminary pickling support, internal config.  TODO: Fix unpickling.