Match mixed-case relationship links in goNext/goPrevious

Also add some unittests for that. This should fix #1115.