BUG: sparse: allow matrices to have length 0 dimensions

Fix for ticket 1602

Seems like a silly bug, but now it is consistent with the rest of numpy.