fixed source generation for arrays and objects
Merge pull request #99 from voda/previw

fixed source generation in preview.html for arrays and objects