TODO: optimize sums of scalars like sums of matrices: only one M/R pass for the whole Sum (Not in this pull request).