Rewrite sum()/product() to allow neater addition of UV accumulator
Expand L:U:sum() to use IVs while it can, to preserve integer precision of large integers