flow: improves array handling