Add "getNumberOfSpringForces" method to modeler and md2d engine

[#49656281]
Fix minor bugs in genetic engine, support all possible model dimensions

[#48721579]

Previously if you changed model size to something different from 3,
it was affecting some parts of the animation.