Support custom root name in collections

Fixes #10