Check cycles before propagating events. Closes #140.