Fix errors causing stateful transducers to fail

There were several errors:

- The single-arg version of the transforming function was not called
  appropriately on a closed channel.
- 'take' did not return buffered values from a closed channel
- The code did not yet implement the ClojureScript version of the fix
  Rich put in in 849ca8df

@ghadishayban