Fixes endless recursion when evaluating type
Fixes endless recursion when evaluating type

Fixes endless recursion when trying to evaluate object's key type when object is enclosed into two functions.
Test case
```
function main() {
	return function next() {
		return {foo: 1};
	};
}
```
Problem happened because once we reached "next" function expression, `findNodeAround(.., "function")` returned the same expression causing infinite loop

fileability/tern,neoclide/tern,marijnh/tern,emacsmirror/tern,fileability/tern,ternjs/tern,marijnh/tern,ternjs/tern,MarcelGerber/tern,othree/tern,MarcelGerber/tern,emacsmirror/tern,ternjs/tern,emacsmirror/tern,marijnh/tern,fileability/tern,othree/tern,neoclide/tern,othree/tern,neoclide/tern,MarcelGerber/tern