Refined an intrusive example. It includes base class serialization. We can switch map based and array based serialization.