Allow named local collections in published arrays

Fixes #1820