Fix shape attribute for MultiIndex

This fix ensures that `idx.shape == (len(idx),)` if `idx` is a MultiIndex.

Also added tests for other ndarray compat properties.