CMF-32: Provide an ability to serialize/deserialize diagram elements depend on its ordering