fixed infinite recursion for isObject in browser tests