Deep array equality check