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.