Minor fix on Constraint class when checking if the column is referenced.