improve debug output for ReduceRepeatMsgs
cleanup
Merge branch 'v7-stable' into v8-stable