Collections with dots

Fixes #2548.