This commit adds test helper code to dump, restore and verify the low-level bbolt database structure.