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