fix Issue 10059 - export doesn't work for variable declarations
Merge pull request #2009 from dawgfoto/fix10059

fix Issue 10059 - export doesn't work for variable declarations