RPI SVF corrections

Well, some branch I have not sent for a long time since I couldn't do anything on the RPI repo. When coding my own registration algorithms using the RPI, I had noticed a bug in SVF to transformation field computation. This is a proposal correction for it.

I am still somehow wondering abut a thing in the code but I'll keep it for later if necessary.