Silence smartmatch warnings and fix a test for latest Mojolicious