Use internal types for uuidfield.

Also force the max length instead of making it overrideable.