Add a warning when redifining events.

Creating an event will reuse an old event with the same name; warn the
user on the console when this happens.