Keep track of which events are defined on userdata for performance.
Merge branch 'master' into texture
Erase key from userdata fields when nil is assigned.