Improve type annotations for `ObservableDeferred`.