SERVER-7511: fix update with positional mod or index offset
fix type mismatch
SERVER-8119: add a timer for how long getLastError wtime takes