Allow readonly field with a default value to pass validation.

Addresses #353.