Fix referencing array parameters by other parameters.
Added type check when concatenating parameters - only scalars can be concatenated.