Add unrelativise/2 and clean up tests a bit.
Merged bug25580 into stable