Cleanup template loaders

Actually the message is completely wrong. This exception is raised when `TEMPLATE_LOADERS` contains something that isn't a string or a tuple/list whose first argument is a string.