[DBAL-959] Allow to get bound parameter types from query builder

Replaces https://github.com/doctrine/dbal/pull/648.

Added tests.
@Ocramius it returns a single parameter type for a given name so it's different because the other one returns all parameter types at once. We should keep this IMO.