Test whether the schema is an union type.