newLoopVar now returns just a string and not a pair of string and the int value.
corrected sizeParam.
Does not generate a size parameter if the input is a scalar.