Make events on elements work by making sure we only ever create one ElementImpl per element