Boolean editor + example, see #171
(cherry picked from commit 086925f)