GROOVY-6574: Make sure that an assignement of a boxed primitive doesn't change the inferred type of the variable of primitive type