DwarfCompileUnit: Add type safety to createGlobalVariableDIE