Fix 'A<<BB>>' problem in template declaration.