Implement serialization of custom LJ properties

[#43089109]
Improve MD2D model serialization

[#43089109]

Work in progress. For now, serialization works for:
- atoms
- elements
- custom LJ properties
- top-level and view properties

This commit implements / fixes last two, also default atoms arrays
are being removed if they contain only default values.