fix(ArrayType): fix .equals for array types

Closes #1538