added optimization for config objects
Merge
make config object optimization correctly recursive
Fix #173.
Fix issue no.