[geometry] replace sub_geometry::get() by sub_range(), fix invalid #includes