ts_stdlib: more functionality for hash table implementation