Optimization: allow `compare-and-set` to use hash comparisons for any arb data
`compare-and-set` script housekeeping