Fix and add tests for YAML and TOML loading.
Add a ByName handler. Switch prioritized to use ByName and Multi, rather
than duplicate the code for them.