Fix local_optimizer() call sites in cuda and gpuarray backends.