geometry: Clean up dmnsn_transform_bounding_box() a bit.