Refactored floating point hook to numerical hook and moved into functional.h
Fixed quaternion constructor test