Fix broken templateVariableContainer and add support for "\n" as glue