[draft] Add resolvePtrOrRef()
This is similar to Dune::resolveRef()
but additionally
dereferences raw pointers.
Warning: The implementation is a DRAFT that currently does the absolutely necessary needed for testing this approach downstream.
This is only meant to demonstrate what was proposed in dune-geometry!224 (comment 130753).