Fix collection type parsing

Refs #9.