Move voxel brick serialization into VoxelBrick class

This seems to make more sense since it depends on the internal details
of the brick storage.