Apply patch #21: add boolean ValueNode conversions. Thanks to nikitakit.