SERVER-7951 fix replacement-style updates with hashed shard key
Merge branch 'SERVER-7951' into releases/1.0 closes #347