Fixed errors in Generator.cs logic.
Fixed errors in Generator.cs logic.

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