gen_hh gen_intermed: implement funcptr types