Increase MAX_ARCHIVE_LEVELS.
Actually detect loops!