Adds Close Method to CollapsibleGroup

Adds close method to CollapsibleGroup so that Collapsibles can be
closed programmatically. For example, closing collapsibles when a
menu closes.

Adds example to prove it works.