GROOVY-4279, GROOVY-4280, GROOVY-4281: allow IDIV and LDIV in safe cases