Add support for collections.
Merge pull request #13 from joshaber/ref-many

Add support for collections.