add test for ending wrapped streams
rename end stream from output to nowhere
further simplify and correct behaviour of end conditions
fix scope of continuation functions
bumped version