Default values are now resolved before validation.

 Closes #353.