Handle byte[]/Byte[] and util.Date/sql.Date mismatch

Basically, to walkaround java's stupidity