Fix parsing of Time and Timestamp as sent by JDBC methods with those names

In the process, add an IT that checks all the JDBC methods (that ought to work, i.e., not arrays).

I consciously tried to disturb the parsing code as little as possible. Really, though, it's a bit of a mess and when we add real timestamps with second fractions and timezones it will no doubt have to be redone.