Restricting event parameters with hasOwnProperty, for cases where it might
be fed a RawMapValue.  Also made invalid attributes warn.  Inspired by bug
W-2336375, though that bug was ultimately user error.

@bug W-2336375@
Merging origin/fabbott/master-pending/eventset into master