Correction of linking library names.
Changed makeArray to use tuple instead of array

According to the serial backend and the intermediate form.
Updated tests according to new makeArray functions
Made makeArray template functions.

The CUDA backend allowed only arrays of type Collection Of Scalar, but now we can have arrays of any type according to the referance manual.