Customization: Fixed overwriting & empty attachments.
Write modified materials on save, not during start up.
Customization: Added CharacteAttachment.NextMaterial.