Fix some wikilink-related tests.
Implement improved wikilink handling.