Clean up of type handling so we don't call "new XXX" when XXX.valueOf is
available, and also to check for java.sql.XXX before java.util.XXX.
[NUCRDBMS-770] The above updates likely help the situation with
Timestamp