Fix edge case error when calling .off('event') multiple times for the same event.

Also fix listeners and namespaces not being deleted if the listeners array was 0.
Bump version