Apply HIVE-3090 patch (backport from HIVE-0.10) to fix TimestampWritable serialization problem (breaks row deserialization, leads to data corruption).