Allow events api callbacks to be method names

Resolves #3333, moving from #3396
So there wasn't any `trigger` specific tests (it was only tested as a side effect of other tests). I've added two tests for the relevant `eventsApi` features, and fixed what I had here, but there really should be a lot more direct tests for it.