modify array_obj_fromseq to take Seq[Rep[T]]