Fix for listenToOnce mem. leak

This is a failing test demonstrating #3226, then a patch that makes the test pass.
I opted for `_.wrap` in the latest commit, as suggested by @jridgewell.