Fix behavior of typeFromContext for variable declarations
Fix behavior of typeFromContext for variable declarations

Closes #610

emacsmirror/tern,albertinad/tern,mcanthony/tern,marijnh/tern,ternjs/tern,othree/tern,mcanthony/tern,neoclide/tern,emacsmirror/tern,messfairy/tern,talyian/tern,albertinad/tern,fileability/tern,emacsmirror/tern,othree/tern,messfairy/tern,ternjs/tern,ternjs/tern,MarcelGerber/tern,MarcelGerber/tern,talyian/tern,messfairy/tern,neoclide/tern,talyian/tern,marijnh/tern,MarcelGerber/tern,albertinad/tern,mcanthony/tern,neoclide/tern,fileability/tern,fileability/tern,marijnh/tern,othree/tern