BUG: Suppress FutureWarning when comparing object arrays

Fixes #7065