Don't detokenize transforms manually in MotionHandler.

Makes it much easier to convert them properly.
Fix revertProcessor.

Now that it doesn't iterate backwards over lines, the earliest index
will always be encountered first.