Make scanl use a reference instead of a variable.
Remove copyArrayPos.
Put the logic relating to freeing memory in the declaration instead of
relying on magic types.
Initialize pointers to NULL.
Remove magic numbers in struct array.
Change compileTypeRep to return Pointer (ArrayType t) instead of ArrayType t,
and make the necessary (minimal) changes required for that to work.
Merge branch 'master' into inlined-arrays
Merge branch 'quick-scanl2' of https://github.com/pjonsson/feldspar-compiler into pjonsson-quick-scanl2

Conflicts:
	lib/Feldspar/Compiler/Imperative/FromCore/Array.hs
Merge branch 'inlined-arrays' of https://github.com/pjonsson/feldspar-compiler into pjonsson-inlined-arrays
Update testcase