Fix bug in variable purging
Fix bug in variable purging

It did not notice direct scope assignments.

neoclide/tern,dorellang/tern,mcanthony/tern,othree/tern,MarcelGerber/tern,albertinad/tern,talyian/tern,dorellang/tern,rustemferreira/tern,marijnh/tern,emacsmirror/tern,fileability/tern,messfairy/tern,messfairy/tern,othree/tern,cdosborn/tern,cdosborn/tern,Icenium/tern,mcanthony/tern,anandthakker/tern,eranif/tern,rustemferreira/tern,marijnh/tern,MarcelGerber/tern,emallson/tern,jgiles/tern,emallson/tern,messfairy/tern,emacsmirror/tern,ternjs/tern,dorellang/tern,angelozerr/tern,adrianton3/tern,adrianton3/tern,albertinad/tern,anandthakker/tern,talyian/tern,Icenium/tern,Icenium/tern,eranif/tern,MarcelGerber/tern,jgiles/tern,jgiles/tern,marijnh/tern,cloud9ide/tern,cdosborn/tern,rustemferreira/tern,neoclide/tern,albertinad/tern,emallson/tern,neoclide/tern,mcanthony/tern,cloud9ide/tern,talyian/tern,fileability/tern,angelozerr/tern,emacsmirror/tern,fileability/tern,ternjs/tern,adrianton3/tern,othree/tern,eranif/tern,anandthakker/tern,ternjs/tern