create ~num_keys ~key_to_int returns a table where the keys can map to 0
.. num_keys-1, according to key_to_int. It is an error if num_keys < 0.
sexp_of_key, if supplied, will be used to display keys in error messages.
Standard hashtbl functions.
set debug := true to turn on debugging, including potentially slow invariant
checking.