[FIX] fixed dumpMat and bug if lowerDiag<0
[FIX] tests fixed