Fix #2136: update cache and group list when copying pads

Should fix #2136 -- please test, though!

(Sorry for the line noise)
I guess this should read `destinationID`