move node-type vector functionality to ast.coffee

would be helpful to use this stuff outside of just fingerprinting