BUG: Added support for more defaultdict serialization.