Revert changes to signatures on chash_func and chash_dup, to match
reversion of change to chashdatum.len in 3fc0e21278.