Update to latest tern - at least one infinite loop fixed