Added to_string() method to ast_base