allow isDerivedFrom to work for unions as well as single inheritance