Bug fix in optimizer, moving transformer out of stencil kernel.