API: Index.duplicated should return np.array

For 2nd issue of #8875.

- Change `Index.duplicated` to return `np.array`. 
ok with changing to this, though using ``(~values).astype(bool)`` is quite common in the code base - if someone wanted to clean up this would be appreciated