[backport] serialization error is fixed on replicated map and added tests for the v...

...ector clock implementation. fixes #4205