Identify and simplify idempotent intrinsics. Test case included.