Fix problem discovered in the JDBC driver with Binary encoded dates
older than about 1940 being encoded wrong because of int vs long
rounding issues with intermediate results. 
Leaving the trace logging row outputter for other debugging purposes.
Add two date conversion tests which fail without the changes.
merge tjoneslo: Fix problem discovered in the JDBC driver with Binary encoded dates

Merge pull request #1035 from tjoneslo/sql-layer/fix-date-binary
https://github.com/FoundationDB/sql-layer/pull/1035