fix generated phpdoc
fix type casting in escape
Merge pull request #274 from TrustNik/master

fix generated phpdoc for *Guy