Added type bool

Added a bool type for elements which uses a checkbox.