Add hashtable_replace() to implement replacement feature.