hmapx: New function hmapx_clear().