Better solution for validating the dependency type

Creating a DependencyTree object already does the circular dependency
check by default, and w've already realized that build and test
dependency *trees* are meaningless, so rather that create object to
validate the type, I've added a class method to assert that the type
is valid.
fixup! lib/EFS/DependencyTree.pm