Build type environment + name resolution