correct types in valgrind bindings