Revert "Instead of trying to deep-copy the entire stats tree, which sometimes causes really weird errors, just copy anything that looks like a dict into an actual dict."

This reverts commit 395b265abab37275737d9ba8ed63c07a1b97b885.
Revert "No more 'dictionary changed size during iteration'"

This reverts commit d20a38c5e23ddfa0164d4cae5951b0d3e5f34fe2.

This was too memory intensive, and the fix to that broke nesting
formatting stuff.

*sigh*