use hashtable_linearize.