[DDC-2451] Fix entity listeners serialization

http://www.doctrine-project.org/jira/browse/DDC-2451