Collect parser

Specification and refactoring for `collect` row parser.