Fixed bug with non-initialised Lambda.
Fixed spurious memory leak in tests.
Improved the large events implementation.