Use deepcopy when copying settings objects.