Added __getstate__ and __setstate__ to DotedDict and i18nDotedDict. Problems appeared here when pickling mongokit documents due to apparent lack of these functions.
Merge pull request #142 from petersng/master

Added __getstate__ and __setstate__ to DotedDict and i18nDotedDict.