Update RSTtests scripts
Update libreg/src/rst.c to fix bug in Modulus Margin calculation