fixes #7827

Added an _eval_integral method to summations.