Fixed variable types incompatibilites

Created MathFunction::iresult() functions for int-returning functions