Add missing imports member variable declaration in abstract class Template