Refactor computation of type fullname
Handle exported nested types with a namespace