Generalize asEventStream and compile previous

Because EventStreams are hard #95
Merge pull request #102 from dnalot/patch-1

Generalize asEventStream and compile previous