dont reset local TypeTrees if keepLocals is true