fix(yams serialisation): Fix ordered_nodes to handle multi heritage
This function is used by yams to serialize to python Yams schema. This is needed for the owl2yams project
This function is used by yams to serialize to python Yams schema. This is needed for the owl2yams project