ViewHandler, check Serializer against Interface, not against concrete class

In the ViewHandler, allow receiving the context for Serializer class that implement JMSSerializerInterface