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