Channel: Fix bug in map()

Do not append a new element each time the channel produces a value.
Merge pull request #9 from angerhang/master

Channel: Fix bug in map()