Further improvements to DMSplitView and more reliable detection of collapsed splitview state