HeaderItentifier now avoids duplicating any id in the source document

instead of only accounting for ids on other headers.