Fix confusion about which type value to fill in in definion loader
Fix confusion about which type value to fill in in definion loader

Closes #491

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