Use deleteat! instead of splice! in linalg/sparse

If the array type is such that elements are initially allocated as #undef, then splice! will fail to remove the extra space since it returns the values, giving error: access to undefined reference.