skip arrays when flatten model attributes