update fmindex to use cybozu::serializer