Automatically run Valgrind (memcheck) and Cppcheck in test suite.
Cppcheck fixes.