Added parent static reference to parent prototype object.

Overridden StdClass toString method returns "[object StdClass]"
Fixed a typo when checking for window/global