Allow valid Uuid string in Dotrine Type toDatabaseValue conversion

Made it possible to supply a uuid string value instead of Uuid object to a doctrine field.

This allows for easier migration and makes it possible to pass uuid strings to database look up methods.