Fix accumulate for ReservoirSample

The simulated accumulate in AlgebraicEvalFunc doesn't work in this case.  Added test cases for exec and accumulate.