arrayify and flatten arrays in `mergeOptionsArrays`