Fix ApplicationEvent constructor

ApplicationEvent constructor should take an ApplicationEventInit dictionary
in argument, not an Application.