Fix issue #9920 data-toggle="buttons" with radio buttons. Includes unit test.

Similar to existing pull request for same issue - except the unit test for button.toggle is also updated.