Updated the API for geting sub/supertypes