Made dumpRegistry dump Block and Item registries.

To keep things simple, I just copied the customItemStack dump code and
modified it for Blocks and then Items.