Handle abstracts in ExampleJsGenerator::getType.