Backport #2380 Add combineAllOption
to Foldable
#3340
Merged
combineAllOption
to Foldable
#3340