Implement equality for Dependencies collections