Write only import section from global namespaces before global attribute sections. Fixes #13523