Avoid Twig errors on element types with arrays.