Don't calculate new uniqid() on each back reference.

You only need one and an incrementing index.

This also opens up of the possibility of allowing users
to generate consistent footnotes by letting them to
set the linkPrefix.