Fixes to globals documentation generation