Add test for passing uuid.UUID values in queries.

Replaces PR #144.