[FLINK-1178] Changed type preference to ValueType, WritableType, CaseClassType

Case class which implement the Value or Writable interface are now treated as one of those types. This allows to add custom serialization logic to case classes.