Bare prototype of headers.
Slightly improved header representation scheme.

This retains both raw and typed values when feasible.

The tests are not at all complete yet.