fix: move dependencies in DependentTask to Set

This eliminates repeated dependencies