Fix global ``` self.root = false ```

Using the on_load hook does not change the defined root on
Serializer#inherited.

Related to #179

I'm not sure if this is the right way to implement this. Let me know if I need to change something.