Reworked the jms serializer version support.

Hey,

I reworked the version support. Maybe you could consider to include it in your PR. I would understand if you prefer merging your PR without these changes, don't hesitate to decline it and when your PR will get merged I will make my PR to the Nelmio repository directly.