Fix #84 and #85

Adds support for setting default value and allow union types with a format.