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 value, giving error: access to undefined reference.