Use more reliable checksumming method

Marshal.dump is not consistent in its output.