Increased performance of timestamp by ~20%

Should also improve timestamptz. We now avoid checking integer datetimes
each time a datetime is encountered, among other things.