[node] Provide getModType
[node] Provide getModType

This PR provides teh capability to use getModType from the given node. It is used here for typeAt, but it could be used by another plugin. In my case I would liek to use it to validate the required node module.

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