fixes issue #29. java.util.Date and jodatime.Datetime instances would loose time information when added as parameter to insert/update statements on some databases