
http://aescripts.com/duplicatelayers-n-updateexpressions/
Duplicates the selected layers and if any of the layers have expressions referencing any of the layers being duplicated it will update the expressions to point to the newly duplicated layers. Might make more sense if you watch the demo :-)