Allow a Volume object to be passed to get_shape().