Added Object unit tests and fixed Object.getClassOf()

Object.getClassOf() was returning "global" for the window object, which isn't helpful, so now it returns "Object" when passed a window.