Support for writing an internal descriptor in archives; various archive fixes.