Return the template symbol if we've found a template declaration
remove unused code
resolve files in CPlusPlus as well