cluster: Use deepcopy when copying config.