Fix Evaluator.sum(), add per expression cancel

Bug: 32941494

Add a public cancel() overload to allow cancelling evaluation of
a single expression.

Fix and clean up sum() to better handle parenthesis unbalanced
expressions.

Some comment fixes.

Change-Id: Ifb64562db3a687c986fb953ee97621381c02bd75
2 files changed