Added basic support for template classes. Fail wit constructor and destructor