add special treatment for footnotes with autonumber labels
replace targets with duplicate ids
simplify handling of hybrid ids