Flatten argument to with_items

Fixes #1711.