GROOVY-6969: Set.flatten() should return Set

Bug fix. `Set.flatten()` should return `Set`, but currently returns `List`.