Ensure that Twig form themes are always a list, not a hashmap

array_unique does not reindex arrays when deleting keys.