Remove unused attributes
mkclass: Optimize struct layout

fixes #7615
Improve config compiler's memory usage
Fix: mkclass crashes when called without arguments

fixes #7617
Fix problem with missing config items
Remove unnecessary use of boost::ref()
Fix: Adding/Removing multiple services fails

fixes #7616
Test.
Test 2.
Test 3.