{%- macro render_annotation_fields(data, parent_key='') -%}
{%- for key, value in data.items() -%}
{%- set current_key = parent_key ~ key if parent_key else key -%}
{%- if value is mapping -%}
{%- elif value is iterable and value is not string -%}
{{ current_key }}
{%- for item in value -%}
{# Fix: Check if item is mapping before recursing #}
{%- if item is mapping -%}
{{ render_annotation_fields(item, parent_key=current_key ~ ' (' ~ loop.index ~ ') -> ') }}
{%- else -%}
{{ item }}
{%- endif -%}
{% if not loop.last %}
{% endif %}
{%- endfor -%}