test: add tests for dumping a table that uses type as key