[DDC-2224] convertToDatabaseValueSQL() is not honored for DQL query parameters

[DDC-2224](http://www.doctrine-project.org/jira/browse/DDC-2224): convertToDatabaseValueSQL() is not honored for DQL query parameters

Fix + test

Please note this is the first time I get into SqlWalker, I hope I inserted the fix at the right place.