Twig loader refactoring.
Bug in exception.