BUG: Intersection buggy for non-monotonic non-unique indices (GH8362)

Fixes intersection bug in the case of non-monotonic non-unique indexes. 
closes #8362