add support to serialize SimplePolynomialFunctions