MAINT: Make Event contains consider properties.

Use `hasattr` instead of just checking the `__dict__` in the Event's
dict-like `__contains__` method, so that properties are also considered
to satisfy the `in` check.

Also, add docstring for the change __contains__ method.