Fix serialization of root namespace