Change DATE memory representation to be days

DATE is now stored as a 32-bit number of days since 1970-01-01
I think this comment is still relevant (same as in the above method). The `instanceof` check should not be necessary, because you are supposed to use the object inspector to access the object. But there was/is a bug where the object and the object inspector don't match up, so we need the check.