generating StreamOp from RepStreamOp, with generated mutable state