refactor(ScopeStats): Move formatting from ScopeStats into ScopeStatsEmitter.

Move logic for formatting stats from ScopeStats into ScopeStatEmitter. The way
ScopeStats is concerned only with collecting the statistics and ScopeStatsEmitter
takes care of formatting and outputting the stats.