Support for inheritance in TypeMapper.