Two fixes and a Javascript validator feature

Hello,

Here's a build fix for gcc 4.4 (eg. el6) builds, a new method V8Js::checkString() that uses V8 to validate the Javascript without running it and also a bugfix when passing objects from Javascript to PHP (there's also some other points where HasRealNamedProperty is called, but I didn't touch those since it's new code to me.