ODK Collect v2023.1.0 adds support for specifying lines and polygons/shapes.
This is an example generated from OSM data converted to geojson using this online converter:
More details in the docs!
Thanks again to everyone who made this whole big area of functionality come together over time.