fix Issue 12850 - ICE when passing associative array to template
Merge pull request #3640 from 9rnsr/fix12850

Issue 12850 - ICE when passing associative array to template