s4-repl: check that a DsGetNCChanges is a continuation, and fix sorting