fix generated code get_str_array, template changed