Fix invalid type hierarchy creation by Pojo logic
[FLINK-610] Replace Avro by Kryo as the GenericType serializer

The performance of data-intensive jobs using Kryo is probably going to be slow.