Unpacker: maintain refcnt (fix #67).