give NameTypeDecl the right type for dyn_cast
set TypeDecl on TypeSpecDecls