[SegmentedButton] Correctly register/unregister children elements.