Rewrite scatter using meta_kernel