Add boolean support

Signed-off-by: Sam Phippen <samphippen@googlemail.com>