properly support all types of data in arrays