patches in bugfix for removing constraints

Adds in Renato's bugfix for constraint removal, adapted for the current guiconstraint.py structure.