UDT types are never validated, so if there are any restrictions on their fields, they are not enforced, this can be solved by adding to UserDefinedType
The failing tests are here and here
Tested the suggested fix and works well. Thanks Jaume!
Good! Tests where added in here and here.
Tests are passing so moving to done.