added Class::Serialize and Deserialize
implementing serialization methods for ValueList and ValueDict