Run garbage collector before each constraint is added