Check redeclaration of template parameters.