Disable option groups whose children are all disabled

Fixes #609 

@lukecarbis Please review