Fix memory space of expanded allocation during kernel generation.
Fix memory space of expanded allocation during kernel generation.

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