SERVER-12578 Permit in-place mutation for all types when possible
Merge remote-tracking branch 'upstream/master'