Fixes issue with array's and objects

Fixes issue with array's and objects while working with arrays e.g. $array["key"] from the settings of the form.
Merge pull request #391 from Badgott/patch-3

Fixes issue with array's and objects