Added vector support to dependencypass
Fixed the case that dependencies were counted multiple times if they appeared multiple times.