Improve MD2D model serialization

[#43089109]

Fix custom LJ properties serialization, serialize radial and angular
bonds.