Made modifications needed to support thymeleaf/thymeleaf-spring3#33. Refactored creation of evaluation context.