test-multilineargeometry: test local()

Add a simple test for local() to make sure

  local == geometry.local(geometry.global(local))

holds.
test-multilineargeometry: test for NaN in Jacobian

Make sure the Jacobian does not contain NaN entries. This is not
caught by

  (expected - actual).two_norm() > epsilon

as NaN > epsilon is false.
test-multilineargeometry: test Jacobian in corners

The Jacobian is well defined in all corners as the tests use linear
transformations.
jacobianTransposed: handle evaluation at tip of pyramid

Handle the evaluation of the jacobian at the tip of a pyramid. Note
that the derivative there is only defined if the base of the pyramid is
subject to an affine-linear transformation. Non-affine-linear
transformations are not detected and the result is undefined.
Implementation notes for pyramid case in jacobianTransposed
Use ternary operator for some minor code simplification