pidl-wireshark: add a function to change the type of a hf_field