fix 77e8c3b matching in test
test hmap.delete_by_key
use match syntax for recordp in function heads

..instead of low-level tuple representation