Replace IfGeometry by toGeometryTypeIdConstant
The latter is lambda-friendly and allows to avoid explicit maker/factory structs and thus some indirection.
This is a follow up MR to !186 (merged). Using dune-geometry!164 (merged) allows to avoid IfGeometry
and thus an additional indirection (as it's done in TopologyFactory
now).