Adding support for matrix groups and fixing a bug with branching questions that could have resulted in empty parens in the branching logic.