fix visit for ClassDeclaration with template params