Added uniqueness constraint to type_set, plus minor cleanup
Fixed a bunch of bugs found while adjusting the mysql connector
Expressed equal_to, not_equal_to, logical_not as binary/unary expressions