handled nested array, fixed #45