Fix replicate kernel code generation.
Fix replicate kernel code generation.

ihc/futhark,diku-dk/futhark,HIPERFIT/futhark,ihc/futhark,HIPERFIT/futhark,diku-dk/futhark,HIPERFIT/futhark,diku-dk/futhark,diku-dk/futhark,ihc/futhark,diku-dk/futhark