fix prefetch related with UUID fields

Because the foreign key is stored as a string (char field) and
the uuid field is returned as a UUID (StringUUID) object, prefetch
related does not work.

This patch makes StringUUID dict keys equivelent to string dict
keys.