BUG: Suppress FutureWarning when comparing object arrays

Fixes #7065
perfect