Properly detect, and format array types.