MathGeoLib update

The version of MathGeoLib used by Tundra previously is old, missing a lot of updates and fixes, as noted in issue #621.

This pull request updates MathGeoLib to the newest stable version, with some adaptation to match Tundra codebase requirements. Core and application modules have been adapted where necessary.

Some function signatures change in the scripting interface, so testing is required to verify that commonly used functionality has not been broken.