Upgraded error checking for footnotes and cross-references