CDK-556: Added a test for primitive types with AllowNulls.