[MathLib] PETScMatrix style.
Fix warnings in tests.
Merge pull request #409 from TomFischer/FixWarnings

Fix warnings and docu improvement.