Small cleanup of GenerateGo.
Split Dub types into shared module.