MinSG export: Fix bug: References to States could be placed before the State definition.
Improve naming: NodeDescription --> DescriptionMap; NodeDescriptionList --> DescriptionArray; minor code cleanups.