The select option in the operator was never working because we were
trying to select an object considered unselectable (since it was hidden).
Besides, and this part is up to debate, the commit that brought H/Alt+H
back (rB0619f960c2999) deliberately had it not selecting the objects when
running from the outliner.
I think both changes should be made, as separate commits. But would like
to hear from the team. Specially because we also have an unhide all
exclusive to the outliner which unhides collections too, and should be
the only operator we need there (until we sync outliner and viewport
objects selection).
(T62438)