Merge pull request #3781 from 9rnsr/2.066

Cherry-picking commits from master to 2.066 branch (for beta5)
Merge pull request #3782 from 9rnsr/fix_vgc

[trivial] Fix -vgc help text
Merge pull request #3776 from yebblies/issue12833

Issue 12833 - switch statement does not work properly when -inline used