Added default constructor for Math JSON deserialization.
Added test for serialization of complex function (turnRelative).