nested options on array flattening