Energy2D: Add initial implementation of model serialization

[#52940627]

Most properties should be serialized correctly. There is a problem
with parts - their position is changed, this isn't reflected in the
serialized json. Probably it would make sense to change part
properties structure.