Used by IndexVariable to return IndexVariable objects when possible.

def _finalize_indexing_result(self, dims, data):
        """Used by IndexVariable to return IndexVariable objects when possible.
        """
        return type(self)(dims, data, self._attrs, self._encoding,
                          fastpath=True)