BUG: The AddListenerEvent has the wrong callback function if an event is added with once.

Added a test and a fix.
JSDoc the events and meta events classes