Added array and object comparisons on update