Added tests for using global vars from generators.
Added tests for using global vars from generators.

peachpiecompiler/peachpie,peachpiecompiler/peachpie,iolevel/peachpie,peachpiecompiler/peachpie,iolevel/peachpie,iolevel/peachpie-concept,iolevel/peachpie,iolevel/peachpie-concept,iolevel/peachpie-concept