API: Index.duplicated should return np.array

For 2nd issue of #8875.

- Change `duplicated` to return `np.array`.