=clu #3442 Optimize the vector clock comparison

* This is the vector clock part of pull #1699 that has been broken out.
* It has the original commit and aseparate commit with updates according to review comments including the fix for the bug I found while updating.
* It has successfully run the multinode tests with assertion comparisons against the old code since yesterday (16 runs).