hasElement only valid on built matrix
Add SparseMatrix.append (for parallel assembly)