Fix Date/Timestamp calculations that had invalid miliseconds.
Add handling for BigNumber ketle datatype.