Include generic types in JavaType#getAllTypesInHierarchy