Improvements to how setting events are calculated up the containment hierarchy