DwarfDebug: Minor refactoring around type unit construction