Replaced internal dependency scanner with C preprocessor.
Fixes for ConfigTree and saving Configuration.