Merging in default headers case-insensitively. Closes #767