Stricter input checking in cl-easy-setopt for CURLOPT_HTTPHEADER

* src/func.c (cl_easy_setopt): modify argument checks
Add test for freeing handles with HTTPHEADER

* test/check_type (test_free_handle_httpheader): new test
  (test_free_handle_empty_httpheader): new test