Check index sets while flattening, transfer index sets from right to left hand side
Check index sets while flattening, transfer index sets from right to left hand side

nathanielbaxter/libminizinc,jjdekker/libminizinc,tias/libminizinc,jjdekker/libminizinc,nathanielbaxter/libminizinc,tias/libminizinc,nathanielbaxter/libminizinc,jjdekker/libminizinc,nathanielbaxter/libminizinc,jjdekker/libminizinc