Change to putting serialize/de-serialize directly in xml_module.
Be strict about ModelType expected types, rename Object as Dict.