Adds equality comparison for arrays.