make cioff in struct REnv from int to ptrdiff_t; close #2149