[DoctrineBridge] Refactored the query sanitization in the collector
[DoctrineBridge] Refactored the query sanitization in the collector

The original parameters are kept whenever possible to allow using them
again to explain the query.

symfony/doctrine-bridge,symfony/DoctrineBridge,takeit/DoctrineBridge