Exact text matches is now have priority over partial matches.

Fix for https://github.com/Behat/Mink/issues/319