Replace user-supplied string key with  auto-incremental integer ID.
normalize all array elements to a single Type
Replace: Logic -> Repo.exec, Reply -> Repo.Reply
Move ID management outside Store