adapt to passing reference elements by value in a compatible way
In dune-gemeotry 2.6, reference elements are passed by value instead of by reference. This patch replaces those references by suitable decltype statements to avoid the deprecation warning and stay compatible to the 2.5 release at the same time.