Set type of tools menu toggle button

If the button element does not have it's ``type`` attribute set
to ``button``, in IE8 and IE9, pressing Enter will trigger a
button press.  Presumably this is because the default button type
is ``submit``.

Closes #913