implemented FormulaElement::resetStatistics() to call the same function of the children.

By this patch, the call of resetStatistics() of the root formula element
causes the reset of statistics for the entire formula.