Fix documentation for searchsortedfirst/last w/ generalized indexing. (#43128)
While the code now correctly handles generalized indexing,
documentation for `searchsortedfirst` and `searchsortedlast` still
assume that indices are `1:length(a)`. This PR fixes that.
Also add tests while at it. No behavior is changed.