Read/writeBlockHeader in class that has its own read/writeObject method.
Remove unused param: unshared.