Add a contains method for arrays.