[FLINK-1252] Add support for serializing Date and Enums in the Java API

Just curious, why is this 4 instead of 8?