o.c.archive.common, o.c.dal2: archiving count and unit; several fixes
for different data types