When importing a structure which contains nested <static-array>s which each have their own index-enum, the composite types are being named backwards.
For example, in the creature_graphicsst structure:
<static-array name='profession_add_color' original-name='creature_unit_texpos_addcolor' index-enum='creature_graphics_role'><static-array type-name='bool' index-enum='profession'/></static-array>
The inner array is bool[<profession>135] and the outer array adds [<creature_graphics_role>7], but the outer array structure is being named bool[<profession>135][<creature_graphics_role>7] when it should be bool[<creature_graphics_role>7][<profession>135] (to match the actual definition char creature_unit_texpos_addcolor[CREATURE_TEXTURENUM][PLAYUNITNUM] within the Bay12 headers).