Maybe we should be checking inferType.origin first before checking against infer.Arr or infer.Fn or infer.Obj. If inferType origin is one of the names in /thirdparty/tern/defs (ie. browser, ecmas, jquery, or underscore), we should just assign result with infer.name. This will fix issue #4747.