Generalize runtime/hashtable.m