fix param ordering of gen_event crash
fix param ordering of gen_event crash

Currently we get error messages like the following logged:

```
2021-11-09T09:27:03.949055+00:00 error: Generic event handler ... crashed. Installed: .... Last event: {badarg,[{ets,match_object,[...],[{error_info,#{cause => id,module => erl_stdlib_errors}}]}|...]}. State: {event,...}. Reason: {state,...}.
```

This is very confusing (caused us to go on a rabbit hunt through our own
code for transposed `State`/`Reason` in `{stop,...}` return values).

dgud/otp,dumbbell/otp,erlang/otp,jj1bdx/otp,potatosalad/otp,mikpe/otp,isvilen/otp,isvilen/otp,vinoski/otp,vinoski/otp,bjorng/otp,rlipscombe/otp,rlipscombe/otp,potatosalad/otp,jj1bdx/otp,dgud/otp,isvilen/otp,bjorng/otp,potatosalad/otp,dumbbell/otp,rlipscombe/otp,mikpe/otp,potatosalad/otp,potatosalad/otp,potatosalad/otp,isvilen/otp,dgud/otp,emacsmirror/erlang,isvilen/otp,erlang/otp,bjorng/otp,erlang/otp,emacsmirror/erlang,mikpe/otp,erlang/otp,vinoski/otp,bjorng/otp,erlang/otp,dumbbell/otp,dumbbell/otp,potatosalad/otp,g-andrade/otp,dgud/otp,dgud/otp,vinoski/otp,dumbbell/otp,isvilen/otp,emacsmirror/erlang,vinoski/otp,emacsmirror/erlang,isvilen/otp,jj1bdx/otp,g-andrade/otp,erlang/otp,vinoski/otp,emacsmirror/erlang,erlang/otp,g-andrade/otp,vinoski/otp,emacsmirror/erlang,rlipscombe/otp,rlipscombe/otp,jj1bdx/otp,g-andrade/otp,g-andrade/otp,potatosalad/otp,jj1bdx/otp,g-andrade/otp,dumbbell/otp,vinoski/otp,bjorng/otp,rlipscombe/otp,rlipscombe/otp,erlang/otp,jj1bdx/otp,g-andrade/otp,mikpe/otp,rlipscombe/otp,mikpe/otp,dumbbell/otp,vinoski/otp,mikpe/otp,mikpe/otp,jj1bdx/otp,isvilen/otp,jj1bdx/otp,bjorng/otp,g-andrade/otp,bjorng/otp,potatosalad/otp,emacsmirror/erlang,dgud/otp,dgud/otp,bjorng/otp,vinoski/otp,bjorng/otp,jj1bdx/otp,erlang/otp,g-andrade/otp,dumbbell/otp,isvilen/otp,rlipscombe/otp,g-andrade/otp,mikpe/otp,emacsmirror/erlang,emacsmirror/erlang,mikpe/otp,isvilen/otp,dumbbell/otp,erlang/otp,bjorng/otp,dgud/otp,jj1bdx/otp,dgud/otp,rlipscombe/otp,mikpe/otp,potatosalad/otp,emacsmirror/erlang,dumbbell/otp,dgud/otp