src: tighten header field/value loops