Attributes specified at ButtonGroup level should be attached to the ButtonGroup wrapper. Fix #386.