How to use StatsBase.modes correctly with MLJ?

When trying to use StatsBase.modes of result of MLJ model fit I get error -
ERROR: MethodError: no method matching iterate(::UnivariateFinite{Multiclass{2}, String, UInt32, Float64})
However if I use StatsBase.mode everything works fine

The input is the same input - UnivariateFiniteVector{Multiclass{2}, String, UInt32, Float64}

Indeed, StatsBase.modes is not overloaded for objects of type CategoricalDistributions.UnivariateFinite - only mode is.

I have opened a feature request here: