Support inheritance and inherited type naming.