SERVER-991 SERVER-8008 Replaced $trimTo by $slice (but only accepting negative slices for now).