Fixed handling of default values when saving a form via a JSON call. Closes #63.