Rest Angle behaviour in Hinge component

Hi Virvine. This reply explains a bit the issue:

The issue is that the hinge measures the current angle in a plane (perpendicular to the fold edge), and it can be between -pi and +pi. This is sometimes useful for certain applications, but in other cases is a liability.
If the target angle is close to pi, the momentum can carry it slightly past pi, so it folds through itself and then has a new angle of almost -pi, so thinks it has to make a full revolution to get back to the rest state, causing it to start spinning.

I think I could make a modification to the hinge goal to avoid this, such as detecting when it jumps more than pi in one iteration, or just have a boolean option to always take the short way round.