BUG: Suppress FutureWarning when comparing object arrays

Fixes GH7065