Add support for collections.

Fixes #10