SERVER-138791ClosedFixed
Keep the $replaceRoot new-root check of SBE from looking dead
{{$replaceRoot}} and {{$replaceWith}} must fail when the new root is not a document, even when no later stage reads the new root. With {{featureFlagSbeBlueprintRewrites}} on, SBE blueprint dead slot elimination removes the unread new-root entry and the check with it, so on {{{x: 1}}} the pipeline {{[{$replaceWith: "$x"}, {$replaceWith: {ok: 1}}]}} returns {{{ok: 1}}} instead of failing. * Mark the new-root slot with {{SbBlueprint::keepSlot()}} in {{buildReplaceRoot()}}, as the sort's parallel a