clean up block_device_type object for pickling