Add ObjectGroup support.

Tackle #2.