BUG: Enabled floating point exceptions for tests
The dymanic analysis tests have uncovered a number of floating point exceptions, mainly divide by zero. This MR enables floayting point exceptions if tests are built with a debug build type and the comp=iler is a gnu compiler.
Excetions arenonly enabled for gnu compilers.
Safety guards have been added to classes that exhibited exceptions.