update deserialize to handle both array(primitive) and Array(model)
Merge pull request #335 from wing328/master

update deserialize to handle both array(primitive) and Array(model)