add sparse.toarray shortcut
add sparse.toarray shortcut

If the sparse array is one dimensional and the indices are `range(len(array))`,
the sparse values can be returned as the dense array directly.

wijnandhoitinga/nutils,joostvanzwieten/nutils