Fix the illegal string offset error

This PR fix the error in Ticket #22.
If we use the single mode of the filetree the varValue only contains a string. The array is only given if it is in multiple mode. I have added a simple is_array condition to check for beeing an array or a string.