Use a custom StringPair since Tuple is not available in .NET 3.5. Fix tests for pgsql <= 9.2.