add utility to compute the checksum of a serializable value