Fixed TransformOp double transform bug and added test case

Added fix to prevent double transforms when primVars are the same.