fix h_stringmap_replace for the all-values case
clean up a bit