Fixes "Misused header name" bug when using dynamic headers.

This fixes #43. 

It also fixes the equivalent bug with trying to remove a content header from the main headers collection.