Fixed bug with use of scoped reference types declared in global variables


git-svn-id: http://svn.code.sf.net/p/angelscript/code/trunk/sdk@2023 404ce1b2-830e-0410-a2e2-b09542c77caf
Improving the test case for aligned scoped reference

git-svn-id: http://svn.code.sf.net/p/angelscript/code/trunk/sdk@2024 404ce1b2-830e-0410-a2e2-b09542c77caf