Don’t detect fragments of form IDs of other lexemes
Previously, a link like [[Lexeme:L1#L2-F1]] would be parsed as a
reference to the entity L2-F1, and formatted accordingly (even though
the href would still point to Lexeme:L1, since that’s not under our
control). Fix this and add a test.