Fix serializer interface for symfony 2.2

The normalizer interface changed a few days ago. This push updates the interface accordingly.