Add support for nested collections when using collapse
Merge pull request #5462 from JosephSilber/collapse-nested-collection

Add support for nested collections when using collapse