Serialization, Generics