Dispatch to correct compilation method.

def _compile_value(self, data, indent_level):
        """Dispatch to correct compilation method."""
        if isinstance(data, dict):
            return self._compile_key_val(data, indent_level)
        elif isinstance(data, list):
            return self._compile_list(data, indent_level)
        else:
            return self._compile_literal(data)