Changed Task.Depends to being a map[TaskID]struct{}; added tasksEqual to tests.