New-style '__getstate__' / '__setstate__' for Python trees.
Propagate per-instance sizes to inner trees.