Implement the same logic as we do for the active layer, by calling the corresponding RNA function. This makes sure all the notifiers and DEG update calls are properly called. This is needed at least for !113908. Also adds an undo push step which was missing in main. Co-authored and reviewed (in real life) by: Julian Eisel <julian@blender.org>