DwarfDebug: Refactor out common skeleton construction code to be reused for type unit skeletons.