Eliminate some weirdness in add_constraint_to_query
Add better string comparison query tests
Throw an exception if the user asks for case-insensive matching on link queries