Added array and object comparisons on update

This pull fixes issue #85 by forcing the update function to compare database values as arrays and objects if applicable.