ldb: introduce ldb_unpack_data_withlist to unpack partial list of attributes