Fix segmentation fault when invoking __callStatic()
Enable valgrind on Travis