Disable attachment buttons when none is selected.
Add hasKey() convenience methods.
Raise an error when parsing duplicate attributes/attachments.