Pass Position as const ref in update_stats()

No functional change.
Merge remote-tracking branch 'upstream/master'