Issue #6477: Added pickling support for singletons and their types.
6 files changed