cosmetic changes to base/statistics.jl (prepare for further refactoring)
Merge pull request #7168 from JuliaLang/dh/stats2

cosmetic changes to base/statistics.jl (prepare for further refactoring)