Fix self.inflate: process root node and improve performance