MAINT: some docstring fixes and style cleanups in stats.mstats

After-sprint travel commits, so nothing here that requires much thinking.
The actual output has spaces after the colons: `{2: 1, 3: 2}`