test(header_dict): ensure value semantics

Also add test for a dangerous edge case.  Make sure libcurl does not
read a header in that format (otherwise UB).