Fix replicate() in code generator.
Fix replicate() in code generator.

CulpaBS/wbBach,diku-dk/futhark,mrakgr/futhark,mrakgr/futhark,ihc/futhark,HIPERFIT/futhark,HIPERFIT/futhark,diku-dk/futhark,diku-dk/futhark,HIPERFIT/futhark,ihc/futhark,ihc/futhark,diku-dk/futhark,mrakgr/futhark,diku-dk/futhark