Removes obsolete property references in TemplateScriptingCompiler

Fixes #1633