806: hyper.rewrite(Sum)

Change return value to Piecewise
Add tests