Added enforceDeserialize parameter to CompositeSerializer

Add a constructor parameter that allow to not enforce deserialization to
the composite serializer