htable: add allocator hooks.