Fix circular inheritance check for sibling base types