Only link to flat version during copying if that doesn't link back to the vardecl itself (and establish self link otherwise)
Only link to flat version during copying if that doesn't link back to the vardecl itself (and establish self link otherwise)

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