[FLINK-1005] Extend TypeSerializer interface to handle non-mutable object deserialization more efficiently.