def to_dict(self):
        """
        Recursive conversion back to dict.
        """
        out = dict(self)