Rollup_helpers: fix RotatingArray.set and remove remove
Add some tests.
The remove
function is (a) buggy and (b) unused. It cannot be
implemented correctly given the current structure of RotatingArray,
since we rely on the map's cardinality being non-decreasing.