Added jsonSerialize method to PersistentCollection

Added jsonSerialize.

Here is to commit on collections:
https://github.com/doctrine/collections/pull/33