Fixing issue when number of positional parameters != number of given types

When passing incomplete type information to `Connection::query()`, `SQLParserUtils` currently behaves the wrong way as it ignores all typing information instead falling back to a default (`PDO::PARAM_STR`). I don’t know this place very well, so please review carefully.