Added Sum-Sum and Product-Product Merging

A sum within a sum will more properly merge with the containing sum.
Similarly with products.