Adds equality comparison for arrays.
Merge pull request #580 from gradha/pr_adds_equality_for_arrays

Adds equality comparison for arrays.