Change the list of DOES> runtimes to use a wordlist.
Minor refactoring; and also fix a typo in an error message.