Make median behave on arrays as mean and var
Merge pull request #2266 from JuliaLang/anj/median

Make median behave on arrays as mean and var