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

array_unique does not reindex arrays when deleting keys.
bug #12308 Ensure that Twig form themes are always a list, not a hashmap (stof)

This PR was merged into the 2.6-dev branch.

Discussion
----------

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

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #12305
| License       | MIT
| Doc PR        | n/a

array_unique does not reindex arrays when deleting keys.

Commits
-------

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