Updating stencil_kernel example for api changes.