[MAT-475] Add more debug flags to valgrind