memoize: change unpacker to embed array type.