Avoid duplicates in sprand
sprand: handle all-zero matrix without error
Merge pull request #4726 from JuliaLang/teh/sprand

WIP: Avoid duplicates in sprand