Improves console trace formatting for long lists of before and after states.