Allow AttributeDictionaries to be pickled.