bugfix in flattenObjects

array values were handled incorrectly
introcuding GridView v0.1