handle array result correctly

This version also works with YAML files that look like:

```
en:
  list:
    - element1
    - element2
```
Merge pull request #1 from tbraun89/master

handle array result correctly