Fix similar synthesization issue with Eq[Array[T]].

This commit avoids synthesizing a type class instance every
time we want to check for equality.