Use default value if specified. Fixes #85.
Allow for union types to work even with formats. Fixes #84.