Tests that we optimize String's length()/isEmpty() for constant strings.