Fix :func:`dataclasses.astuple` crash when :class:`collections.defaultdict` is present in the attributes.