Properly commit merged values in hooks.

Also give integrity-fn and merge-order-fns access to the store in a go-block.