This needs clarification. What is difference between `lis_matrix_is_assembled(A)` result and `mat.isAssembled()` result? If `lis_matrix_is_assembled()` is buggy remove it here from comments, otherwise we need to rework `isAssembled()` method.