Fix for IE7 where Window isn't properly catered for.

window.toString() returns "[object]" instead of "[object Window]"