[UG] Workaround for calculating local coordinates for triangle corners.

Using CachedMultiLinearGeometry instead of MultiLinearGeometry will
avoid a segmentation fault but it does not solve the real problem.
See FS#1209 for more details.
This commit is an adaptation of a patch by Jonathan Youett.
[UG] Reduce number of warnings when building libdunegrid.