Test footnoteref without text, fix a bug in SubMacros().
Avoid nil footnote when looking a footnoteref.
Test footnoteref:[id,text].
Test footnoteref referencing an existing footnote.