Queue event stack for nested method calls and events

Fixes #1512