Fixed remaining VS warnings (hopefully all of them, this time)
Fixed incorrect usage of startOfExecutableScope() (Checking time reduced by ~60% (nonlinear) for #5876)