Improve replay_chain_database test -- make it able to collect detailed statistics about the size of blockchain databases.