Test whether the schema is a union type.