When putting CDATA into the output, any instances of ']]>' in the text
are replaced with ']]]]><![CDATA[>'. This allows nested templates, e.g.
from list views inside list views to work properly.
- Added tests for more error messages
- Test the "go to reference" feature at every character index of every
test case
- Delete unused code and imports
- Fix some bugs I found along the way