Fix warnings from mri 2.2.0-preview2
Add effects to various events
Move NegativePermissionModifier to engine test.