mam.lib: add option to store additional custom elements to archives.