extend in-memory sink to allow functions

- https://github.com/nathanmarz/cascalog/pull/256#discussion-diff-22298706
- add tests
- force execution of lazy-seq (with doall)