BUG: Suppress FutureWarning when comparing object arrays

Fixes #7065
here, I think you need to do:

``lib.array_equivalent_object(_values_from_object(left).ravel(),_values_from_object(right).ravel())``