Allow events with ArrayObject argument
Allow events with ArrayObject argument

The reliance on objects implementing EntityInterface is ill-advised, as beforeMarshal events supply an ArrayObject. See http://book.cakephp.org/3.0/en/orm/table-objects.html#beforemarshal

This patch solves the problem and was tested with CakePHP 3.2.1 and PHP 7.0.1
chrisShick/CakePHP3-HtmlPurifier