Review min and max values of units of measure
Background
tLegthM has no restrictions on min and max values because e.g. used for radius. If curve turns to the left then radius should be negative. However it is then also possible to have in file smth like length/@value="-5"
Suggested solution
tbd