shadertool: Fix edge case in auto fix that could mess up a shader

If the line that sets the temporary register used for the output
position reads from the same temporary register, the autofix would
relocate the output position above the line instead of below it, causing
effects to disappear.