Fix transaction header bug

Previously, the .get_head() method of transactions incorrectly output headers
if a header was specified multiple times with different values (for instance in
the case of Set-Cookie for multiple separate cookies on the same response.) The
header would still appear multiple times, but would incorrectly each time have
the same value.