Fix #425 global root configuration not inherited

This fixes that I could not turn off root elements in my json serialization.