Is it intended that scopes are returned in the solutionModel call to getGlobalVariables? It seems unlikely as there is another method for specifically for this, getScopeNames(), and I can vouch for this throwing me for a slight loop.
Currently using Servoy Version: 7.1.0 - build 2009