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

(Sorry for the line noise)