ts_stdlib: more hash unit-tests around collisions
ts_stdlib: add leak-check to valgrind, with unit-test fixes