fix Issue 13756 - [AA] Allow ref const index on foreach AA iteration