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

These checks appear a little random before you see that you want the rnd value in the range 3 to Long.MAX_VALUE-1 for the sorted data.