Fix IAL with Header

Also check autoheader ID and which anchor to use.

Also test for this.