fix ForStatement: use generic model in build method, instead of the item model of an array