Enable valgrind when testing on travis

This will slow down testing but will detect pull requests that introduce memory
leaks.