check indices in sparsevec(::Dict). fixes #8363

Now:

````
julia> w = sparsevec([-1=>1,1=>2])
ERROR: BoundsError()
 in sparsevec at sparse/sparsematrix.jl:213
 in sparsevec at sparse/sparsematrix.jl:201
````