Added tests for thymeleaf/thymeleaf#244. Infinite loop parsing tokens with --