Add support for sparse arrays in make_from_numpy().