preprocessor: add new commandline option onlyclearglobals. closes #635
doc: fix typo
preprocessor: remove unused variables