[CTest] Enable memcheck (valgrind) to travis/unix scripts

Valgrind (cf. issue #180) revealed a few subtle bugs. It seems like
a good idea to run valgrind all the time when doing CI.