Validate structure of _attachments property of incoming revisions

For #222