Fix an error in the instrumentation of compound assignments

The AST for a compound assignment contains some shared nodes. Make sure
these shared nodes are rewritten at most once and all references to
them are duly updated.