Use generators when returning events from InMemoryPersistence

See https://github.com/event-centric/EventCentric.Core/issues/17