added support for archives with multiple members; added tests for metadata and for multiple members (fixes #1896)