Fix bug in creation of output model where sometimes chains of variable definitions could lead to crashes
Fix bug in creation of output model where sometimes chains of variable definitions could lead to crashes

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