Added equal(...) methods for arrays.