API: Index.duplicated should return np.array

For 2nd issue of #8875.

- Change `Index.duplicated` to return `np.array`. 
I would take this opportunity to replace `~(values).astype(bool)` with the saner `np.logical_not(values)`