input format: allow unions in context and in scattering functions