Reduce duplication in internaliser.
Reduce duplication in internaliser.

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