This is not a direct solution, but a workaround -- instead of settling on type="raw", I declared every single data area as groups right inside the script schema, and just wrote logic to identify which data area to use when.