Dup arrays when copying hooks