[common] make underlying type workaround available with dune-fem missing