Fix ChainOptimizer::addOptimizer

Add explicit parameter type to ChainOptimizer::addOptimizer