Changed the way typeOf(Object) worked

typeOf(Object) returns true if typeof value === "object" and if value is neither null nor an array