add support to serialize SimplePolynomialFunctions

ignore the crazy formatting change. all i added was testSimplePolynomialFunctionMarshalUnmarshal to the PolynomialFunctionTests and supporting implementation of marshalSimplePolynomialFunction and unmarshalSimplePolynomialFunction to PolynomialFunctions