Fix non-integer division bug encoding date objects.

Fix bug where Event-Timestamp cannot write to buffer because
date.getTime()/1000 is not an integer.
Add test for non multiple of 1000 ms time for date type.
Bump version for new release.