fixed termination handling for step, tests now passing for step-based pipe
Switched arg order of step.fold
Fixed termination issue in new implementation of tee, all tests now passing