Fixes Twig lexerOptions throwing exception (#3877) 

First commit only adds lexerOptions to config to make test fail and demonstrate the error.

Although rearranging the order of applying Twig options obviously fixes this bug, it rather seems like a quickfix because there are no tests to ensure that Twig will always behave as we expect it.

Maybe we should write more tests before applying this fix.