Fixes for things found in Travis

1. Fix 32bit compiling in pack.cc
2. Fix valgrind unitialized jump in statement.cc
3. Fix valgrind cleanup
4. Fix 2 scope issues with cppcheck
5. Fix docs for older versions of Sphinx