fix #3061, partitions() of 0 or 1 elements
Merge branch 'master' of github.com:JuliaLang/julia