This change is actually in 1720.  Most of the substantive changes in this PR are in stats/simplify.py