ts_stdlib: stubbing out some hash-table functionality