Fixed reference set

The reference set was a "set" based only on the key of the header field.
It is now correctly a set of headerfields (i.e. a key can be represented
several times but with different values)