- add support for removal of instance methods as event listeners, taking
into account the id() of the function itself and self, [ticket:2832]