#4: Allow Goal.dependencies, GoalGroup.goals and GoalSet.goals to support Goal|GoalGroup instead of Goal