Better behavior for failed connections in `brew search`

Fixes #20868.
imagemagick: use same test file on 10.6/7/8.
mysql-connector-odbc: use MysqlDependency.
Remove message from default_formula'd requirements
versions: pass string to factory

Closes #20951.