corrected code to convert single submission values to array for component types that accept multiple values