Freeze event objects to prevent tampering. Closes #278
Merge from upstream.
Cleanup after merge.
Merge pull request #280 from arb/freeze

Freeze event objects to prevent tampering