Modified how EventPayload is serialized (PHP 5.5.1)