Updated tern to latest code base, sort hints based on scope...