Remove unused import
Remove import of missing class.
Add a check to make sure compiled templates are actually of the Template class.