make sure footnote numbers are unique across documents FS#2841