tdb: document hashtable bucket offset calculation madness