[Olena-patches] [PATCH 17/19] Have dilations and erosions delegate to the right implementations.