Add structure flattening for converting nested structures of radio inputs