Serialized comparing

For models with serialized attributes, store the hash code for attributes.

Only save columns to database if the hash of the column changes.

This is in response to rails#8328