Dump the index of the child in the relation.

def dump_index(self, obj):
        """Dump the index of the child in the relation."""
        if isinstance(obj, PIDNodeOrdered) and self._is_child(obj):
            return obj.index(self.context['pid'])
        else:
            return None