if set to false in config.yml parameter is not set

app/console cache:clear fails with

[Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]  
  You have requested a non-existent parameter "jms_serializer.infer_types_from_doctrine_metadata".                                                         

when you have 

jms_serializer:
    metadata:
        infer_types_from_doctrine_metadata: false

in you config.yml